package com.kgc.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.kgc.api.goods.GoodsItemApi;
import com.kgc.api.goods.ShowHomeSoildeshowApi;
import com.kgc.bean.CarouselDTO;
import com.kgc.bean.GoodsItem;
import com.kgc.service.ShowHomeSildeshowService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created on 2021/6/23.
 * Author: lzy
 * Description:
 */
@Service
public class ShowHomeSildeshowServiceImpl implements ShowHomeSildeshowService {

    @Reference(timeout = 30000)
    private ShowHomeSoildeshowApi showHomeSoildeshowApi;


    @Reference
    private GoodsItemApi goodsItemApi;

    @Override
    public List<CarouselDTO> querySelectSildeshow(Integer count) {
        return showHomeSoildeshowApi.selectHomeSoildeshow(count);
    }

    @Override
    public List<GoodsItem> querySelectGoodsItem(Integer parentId, Integer pageNo, Integer pageSize) {
        return goodsItemApi.selectGoodsItemByParentId(parentId, pageNo, pageSize);
    }
}
